//
//  UIView+Frame.m
//  01-UIView UIWindow
//
//  Created by mafeng on 16/7/14.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setMf_x:(CGFloat)mf_x {
    CGRect rect = self.frame;
    rect.origin.x = mf_x;
    self.frame = rect;
}
- (CGFloat)mf_x {
    return self.frame.origin.x;
}
- (void)setMf_y:(CGFloat)mf_y {
    CGRect rect = self.frame;
    rect.origin.y = mf_y;
    self.frame = rect;
}
- (CGFloat)mf_y {
    return self.frame.origin.y;
}
- (void)setMf_width:(CGFloat)mf_width {
    CGRect rect = self.frame;
    rect.size.width = mf_width;
    self.frame = rect;
}
- (CGFloat)mf_width {
    return self.frame.size.width;
}
- (void)setMf_height:(CGFloat)mf_height {
    CGRect rect = self.frame;
    rect.size.height = mf_height;
    self.frame = rect;
}
- (CGFloat)mf_height {
    return self.frame.size.height;
}
@end
